package com.cj.eduservice.client;

import com.cj.eduservice.client.impl.orderClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author cj
 * @date 2023/4/21 16:42
 * @description
 */
@Component
@FeignClient(name = "service-order" ,fallback = orderClientImpl.class)
public interface orderClient {
    @GetMapping("/eduorder/order/isBuyCourse/{courseId}/{memberId}")
    public boolean isBuyCourse(@PathVariable("courseId") String courseId, @PathVariable("memberId") String memberId);
}
